package com.iscc.fake.service.Impl;

import com.iscc.fake.dao.Impl.UserDaoImpl;
import com.iscc.fake.dao.UserDAO;
import com.iscc.fake.domain.User;
import com.iscc.fake.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDAO userDAO = new UserDaoImpl();
    @Override
    public int addUser(User user) {
        return userDAO.addUser(user);
    }

    @Override
    public User login(String account) {
        return userDAO.login(account);
    }

    @Override
    public User gerenzhongxinService(int uno) {
        return userDAO.gerenzhongxin(uno);
    }

    @Override
    public int updateInfoService(User user) {
        return userDAO.updateInfo(user);
    }
    // 修改密码 通过uno修改密码
    @Override
    public int updatePwd(String password, int uno) {
        return userDAO.updatePwd(password, uno);
    }
}
